//
//  PBAESBase58.m
//  PBProject
//
//  Created by 罗弟祥 on 2019/4/2.
//  Copyright © 2019年 上海奥若拉信息科技集团有限公司. All rights reserved.
//

#import "PBAESBase58.h"
#import "NS+BTCBase58.h"
#import "AESCipher.h"

static NSString *aesKey = @"CctV$plrWe&N2HkD";

NSString * aesBase58EncryptString(NSString *content) {
    return [[aesEncryptString(content, aesKey) dataUsingEncoding:NSUTF8StringEncoding] base58String];
}

NSString * aesBase58DecryptString(NSString *content) {
    return aesDecryptString([[NSString alloc] initWithData:[content dataFromBase58] encoding:NSStringEncodingConversionExternalRepresentation], aesKey);
}

